package com.physics.mps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.physics.mps.entity.dto.AppModuleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mcsoft
 * @since 2023-09-11
 */
public interface AppModuleMapper extends BaseMapper<AppModuleEntity> {

    /**
     * 根据APPID查询MODULE数据
     *
     * @param appId
     * @return
     */
    List<AppModuleEntity> getAppModuleListByAppId(@Param(value = "appId") String appId);

    /**
     * 获取转换json方法
     *
     * @param appModuleId
     * @return
     */
    String getMethodNameFromDB(@Param(value = "appModuleId") String appModuleId);

    /**
     * 获取对应的handler
     * @param appModuleId
     * @return
     */
    String getHandlerClassNameFromDB(@Param(value = "appModuleId") String appModuleId);

    /**
     * 获取对应moduleName
     * @param appModuleId
     * @return
     */
    String getModuleName(@Param(value = "appModuleId") String appModuleId);
}
